package com.bq.gulimall.gateway.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Data
@Component // 这个注解的意思是：使这个类成为 SpringIOC 的一个对象
//使用这个需要引进 jar 包 (上面有提示)
@ConfigurationProperties(prefix = "gulimall.cors")
public class CORSProperties {
    private List<String> allowedHeaders;
    private List<String> allowedMethods;
    private List<String> allowedOrigins;
    private Boolean allowCredentials;
    private Long maxAge;
    private String filterPath;
}
